package com.ABdolphin.forum.config;

import org.springdoc.core.models.GroupedOpenApi;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

@Component
public class SwaggerConfig {
    @Bean
    public GroupedOpenApi publicApi() {
        return GroupedOpenApi.builder()
                .group("controller")
                .packagesToScan("com.ABdolphin.forum.controller")
                .pathsToMatch("/**")
                .build();
    }
}
